#ifndef CUSTOMER_H
#define CUSTOMER_H
#include "person.h"
#include <QString>
#include "order.h"

#include <QFile>
#include <QDateTime>
#include <QTextStream>

class customer:public person
{
public:

    customer(const QString name="customer");
    customer(const QString name,QString phone);
    friend class order;
    QString queryPopular() const override;
    void startOrder();
    QStringList checkOrder();

    virtual ~customer();
    void orderFood(QString name,int num);
    void submitOrder(QString name);
    void returnOrder(QString num);
    void orderAgain(QString man);
    QStringList queryAll() override;
private:
    double discount;
    order *orders[2];
    int i=-1;
    double totalPrice;
};

#endif // CUSTOMER_H

